package com.spring.nio.core.http;

import io.netty.handler.codec.http.cookie.Cookie;
import lombok.Data;

import java.nio.channels.SocketChannel;
import java.util.*;

/**
 * @author: spring
 * @Date: 2019/9/7 16:02
 * @Pacage_name: com.spring.nio.core.http
 * @Project_Name: nio-client
 * @Description:    Http请求解析工具
 */
@Data
public class HttpResponse extends HttpContext {

    private String requestHeader;

    private HeaderEntry headerEntry;

    private String bodyData;

    private HttpResponse() {
    }

    public static HttpResponse getInstance() {
        HttpResponse httpResponse = new HttpResponse();
        httpResponse.setHeaderEntry(new HeaderEntry());
        return httpResponse;
    }
}
